package cn.jbit.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.jbit.user.dao.PermissionsMapper;
import cn.jbit.user.service.PermissionsService;
import cn.jbit.user.service.UserService;

@Service
public class PermissionsServiceImpl implements PermissionsService {

	@Autowired
	private PermissionsMapper permissionsMapper;
	
	@Override
	public Integer updatePerInfo( Integer userid, Integer permissions_state) {
		
		return permissionsMapper.updatePerInfo( userid, permissions_state);
	}
	//根据userid 新增当前用户的权限
	@Override
	public Integer addUserRole(Integer userid) {
		return permissionsMapper.addUserRole(userid);
	}

}
